 using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MayaTime
{
	public partial class MayaTimeForm : Form
	{
		public MayaTimeForm()
		{
			InitializeComponent();
		}

		private void GoButton_Click(object sender, EventArgs e)
		{
			MayaTime time = new MayaTime(DatePicker.Value.Day, DatePicker.Value.Month, DatePicker.Value.Year);

			// Check value: Columbus landed October 11, 1492, which is:
			// Long Count: 11.13.12.4.3
			// Tzolkin & Haab: 2 Akbal 6 Zotz
			// (Source: 1491 by Charles Mann, ISBN: 140004006X
			//MayaTime time = new MayaTime(11, 10, 1492);

			ResultsText.Text = "Long Count:" + Environment.NewLine
								+ time.LongCountString() + Environment.NewLine
								+ "Tzolkin & Haab:" + Environment.NewLine
								+ time.TzolkinString() + " " +  time.HaabString();
		}
	}
}
